
<?php //print_r($item) ?>

<?php extract($item); ?>
 <h1>Special RECIPES with <span class="blue-dark">vicatra</span></h1>
     
    <div id="recipes">
        <div class="recipes-left ">
          <h3><?php echo $name; ?></h3>
          <table cellpadding="0" cellspacing="0">
          <tbody>            
            <tr>
              <td><p>Preparation:</p></td>
              <td class="right"><?php echo $preparation; ?></td>
            </tr>
            <tr>
              <td><p>Marinating/Waiting:</p></td>
              <td class="right"><?php echo $marinating; ?></td>
            </tr>
            <tr>
              <td class="border"><p>Cooking:</p></td>
              <td class="right border"><?php echo $cooking_time; ?></td>
            </tr>
            <tr>
              <td class="total"><p><strong>Total:</strong></p></td>
              <td class="right total"><strong><?php echo $total; ?></strong></td>
            </tr>
          </tbody>
          </table>
        </div>
        <div class="rating">
           <p>
              <?php for($i=1;$i<=$rating;$i++) echo "<img src=\"".base_url()."public/skin/front-end/images/img-rating.jpg\" alt=\"Rating\" width=\"15\" height=\"17\" />"; ?>
              <?php for($i=1;$i<=5-$rating;$i++) echo "<img src='".base_url()."public/skin/front-end/images/img-rating-gray.jpg' alt='Rating' width='15' height='17' />"; ?>
              </p>
          <p  class="text-rating"><?php echo $servings ?></p>
          <p  class="text-serving">Servings</p>
        </div>
        <div class="corners">
              <div class="tl"></div>
              <div class="tr"></div>
              <div class="bl"></div>
              <div class="br"></div> <img src="<?php echo base_url()."public/upload/".$images; ?>" alt="" width="206" height="154" align="right" class="img-recipes"/>
        </div>
      </div>

      <?php echo $alldescription ?>
       <!--Products gallery -->
        <div class="controls_medium_showcase"><span class="prev_medium"></span> <span class="next_medium"></span>
        <div  id="gallery">
          <ul>
            <?php foreach ($pList as $pItem):
              //  if ($pItem['id'] == $id && count($pList)>2) continue;
                $detailUrl = base_url()."recipes/{$pItem['id']}-{$pItem['alias']}.html";
            ?>
                <li>
                    <a href="<?php echo $detailUrl; ?>">
                        <img src="<?php echo base_url()."public/upload/fix/".$pItem['images']; ?>" alt="" width="150" height="113"/>
                    </a>
                </li>
            <?php endforeach; ?>
          </ul>
        </div>
      </div>